/// <reference types="vite-plugin-svgr/client" />

import { IconProduct } from '@/components/Icons';
import {
    atom
} from 'recoil';
import { IMenuRoute } from '../types';


const routes: IMenuRoute[] = [
    {
        label: '平台1',
        icon: <IconProduct className="arco-icon" />,
        key: 'api1',
        route: '/app/api',
        disableRoute: true,
        type: 'group',
        children: [
            {
                label: '接口平台1',
                key: 'api1',
                route: 'api1'
            },
            {
                label: '接口平台2',
                key: 'api2',
                route: 'api12'
            },
        ]
    },
];

/**
 * 主应用路由菜单配置：/app/xx
 */
export const routerState = atom<IMenuRoute[]>({
    key: 'router',
    default: routes
});
